package edu.ubb.bibliospring.common.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class AuthorDto extends DataTransferObject
{
    private static final long serialVersionUID = 1L;

    private Long id;
    private String firstName;
    private String lastName;

    public AuthorDto()
    {
        super(AuthorDto.class.getName());
    }

    public AuthorDto(String clazz)
    {
        super(clazz);
    }

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getFirstName()
    {
        return firstName;
    }

    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }

    public String getLastName()
    {
        return lastName;
    }

    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }

    @Override
    public String toString()
    {
        return String.format("AuthorDto [id=%s, firstName=%s, lastName=%s]", id, firstName, lastName);
    }
}
